<template>
  <img :src="srcLink" class="rounded-full object-cover select-none" draggable="false" />
</template>
<script lang="ts" setup>
defineOptions({
  name: "GpAvatarImg",
  inheritAttrs: true
})
const { useDefault = true, src } = defineProps<{
  src?: INullable<string>
  /** @default true */
  useDefault?: boolean
}>()
const srcLink = computed(() => {
  if (!useDefault) {
    return src
  }
  return src || __DEFAULT_AVATAR__
})
</script>